package com.zrrd.utils;

/**
 * @author WanJl
 * @version 1.0
 * @title MySingleton
 * @description
 * @create 2024/1/25 14:55
 */
public class MySingleton {
    private static MySingleton mySingleton=new MySingleton();
    private MySingleton() {

    }
    public static MySingleton getMySingleton(){
        return mySingleton;
    }
}
class aaa{
    public static void main(String[] args) {
        MySingleton mySingleton = MySingleton.getMySingleton();
        MySingleton mySingleton1 = MySingleton.getMySingleton();
        MySingleton mySingleton2 = MySingleton.getMySingleton();
        System.out.println(mySingleton);
        System.out.println(mySingleton1);
        System.out.println(mySingleton2);

    }
}
